<?php
declare(strict_types=1);

namespace app\lijunxuan\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Note extends Model
{
    protected $convertNameToCamel = true;
    public function user()
    {
        return $this->belongsTo(User::class, 'create_by', 'id')
        ->field('id,user_id,nickname,avatar')->hidden( ['id']);
    }
}
